home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / JFC.bin / OrganicGrayTheme.java < prev    next >
Text File  |  1998-06-30  |  5KB  |  99 lines

  1. /*
  2.  * @(#)OrganicGrayTheme.java    1.3 98/01/30
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20.  
  21. package com.sun.java.swing.plaf.organic;
  22.  
  23. import com.sun.java.swing.plaf.*;
  24. import java.awt.Font;
  25.  
  26. /**
  27.  * This describes the default "Gray" theme for the Organic Look and Feel.
  28.  * It's commonly referred to as the "Vancouver" theme.
  29.  *
  30.  * @version 1.3 01/30/98
  31.  * @author Steve Wilson
  32.  */
  33.  
  34. public class OrganicGrayTheme extends OrganicTheme{
  35.  
  36.     private final static String name = "Vancouver";
  37.  
  38.     /*     Purple-ish colors */
  39.     private final ColorUIResource Purple4 = new ColorUIResource(102, 102, 153);
  40.     private final ColorUIResource Purple3 = new ColorUIResource(119, 111, 175);
  41.     private final ColorUIResource Purple2 = new ColorUIResource(167, 167, 231);
  42.     private final ColorUIResource Purple1 = new ColorUIResource(204, 204, 255);
  43.     /*     Orange-ish colors */
  44.     private final ColorUIResource Orange4 = new ColorUIResource(255, 127, 000);
  45.     private final ColorUIResource Orange3 = new ColorUIResource(255, 151,  79);
  46.     private final ColorUIResource Orange2 = new ColorUIResource(255, 204, 153);
  47.     private final ColorUIResource Orange1 = new ColorUIResource(255, 255, 255);
  48.     /*     Green-ish colors */
  49.     private final ColorUIResource Green4  = new ColorUIResource(051, 102, 102);
  50.     private final ColorUIResource Green3  = new ColorUIResource(051, 102, 102);
  51.     private final ColorUIResource Green2  = new ColorUIResource(159, 215, 183);
  52.     private final ColorUIResource Green1  = new ColorUIResource(207, 239, 199);
  53.     /*     Gray-ish colors */
  54.     private final ColorUIResource Gray4  = new ColorUIResource( 51,  51,  51);
  55.     private final ColorUIResource Gray3  = new ColorUIResource(102, 102, 102);
  56.     private final ColorUIResource Gray2  = new ColorUIResource(153, 153, 153);
  57.     private final ColorUIResource Gray1  = new ColorUIResource(204, 204, 204);
  58.  
  59.     private final ColorUIResource white  = new ColorUIResource(255, 255, 255);
  60.     private final ColorUIResource black  = new ColorUIResource(0, 0, 0);
  61.     private final ColorUIResource desktop = new ColorUIResource(223, 223, 223);
  62.  
  63.     private final FontUIResource systemFont = new FontUIResource("Dialog", Font.PLAIN, 12);
  64.     private final FontUIResource windowTitleFont = new FontUIResource("SansSerif", Font.BOLD, 12);
  65.     private final FontUIResource userFont = new FontUIResource("SansSerif", Font.PLAIN, 12);
  66.  
  67.     public ColorUIResource getControl1() { return Gray1; }
  68.     public ColorUIResource getControl2() { return Gray2; }
  69.     public ColorUIResource getControl3() { return Gray3; }
  70.     public ColorUIResource getControl4() { return Gray4; }
  71.  
  72.     public ColorUIResource getHighlight1() { return Green1; }
  73.     public ColorUIResource getHighlight2() { return Green2; }
  74.     public ColorUIResource getHighlight3() { return Green3; }
  75.     public ColorUIResource getHighlight4() { return Green4; }
  76.  
  77.     public ColorUIResource getDarkAccent1()  { return Purple1; }
  78.     public ColorUIResource getDarkAccent2()  { return Purple2; } 
  79.     public ColorUIResource getDarkAccent3()  { return Purple3; }
  80.     public ColorUIResource getDarkAccent4()  { return Purple4; }
  81.  
  82.     public ColorUIResource getLightAccent1()  { return Orange1; }
  83.     public ColorUIResource getLightAccent2()  { return Orange2; }
  84.     public ColorUIResource getLightAccent3()  { return Orange3; }
  85.     public ColorUIResource getLightAccent4()  { return Orange4; }
  86.  
  87.     public ColorUIResource getWhite()  { return white; }
  88.     public ColorUIResource getBlack() { return black; }
  89.  
  90.     public ColorUIResource getDesktopColor() { return desktop; }
  91.  
  92.     public String getName() {return name;}
  93.  
  94.     public FontUIResource getControlTextFont() { return systemFont;}
  95.     public FontUIResource getUserTextFont() { return userFont;}
  96.     public FontUIResource getMenuTextFont() { return systemFont;}
  97.     public FontUIResource getEmphasisTextFont() { return windowTitleFont;}
  98. }
  99.